#include "ros/ros.h"
#include "std_msgs/String.h"
#include "taskAssignment/task.h"

void chatterCallback(const taskAssignment::task msg)
{
    ROS_INFO("pose.x::%f", msg.pose.position.x);
}

int main(int argc, char **argv)
{
    ros::init(argc, argv, "task_sub");
    ros::NodeHandle nh;

    ros::Subscriber sub = nh.subscribe("/task", 20, &chatterCallback);

    while(ros::ok()){
      ros::spinOnce();
    }

    return 0;
}
